package cn.stronglink.asset.module.assetmanage.attrvalue.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cn.stronglink.asset.model.AssetTypeValue;
import cn.stronglink.asset.module.assetmanage.attrvalue.mapper.AttrValueMapper;
import cn.stronglink.asset.module.assetmanage.itasset.mapper.ItassetMapper;
import cn.stronglink.asset.module.assetmanage.itasset.vo.ItAssetVo;

@Service
@Transactional(rollbackFor=Exception.class) 
public class AttrValueService {

	@Autowired
	private AttrValueMapper attrValueMapper;
	@Autowired
	private ItassetMapper itassetMapper;

	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public List<AssetTypeValue> qryAssetTypeValue(Long assetId) {
		return  attrValueMapper.qryAssetTypeValue(assetId);
	}
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public ItAssetVo qryAssetAllAttrById(Long assetId) {
		return  itassetMapper.qryAssetAllAttrById(assetId);
	}

	

}
